package com.zb.entity.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;

/**
 * @Author WEN
 * @Date 2023/7/12 0012
 **/
@Data
@ApiModel("功能模块封装")
public class ModuleDto {
    @ApiModelProperty(value = "主健ID，新增时不必传，修改必传")
    private Long id;

    @NotBlank(message = "模块编码不能为空")
    @Length(max = 60, message = "模块编码字符长度限制在60个以内")
    @ApiModelProperty(value = "模块编码", required = true)
    private String code;

    @NotBlank(message = "模块名称不能为空")
    @Length(max = 10, message = "模块名称字符长度限制在10个以内")
    @ApiModelProperty(value = "模块名称", required = true)
    private String name;

}
